<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理中心</title>
<meta name="robots" content="all">
<link href="<?php echo (ADMIN_CSS_URL); ?>general.css" rel="stylesheet" type="text/css" />
<link href="<?php echo (ADMIN_CSS_URL); ?>main.css" rel="stylesheet" type="text/css" />
<link href="<?php echo (TOOL_URL); ?>datepicker/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="<?php echo (TOOL_URL); ?>datepicker/jquery-1.7.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo (TOOL_URL); ?>datepicker/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo (TOOL_URL); ?>datepicker/datepicker_zh-cn.js"></script>

<script type="text/javascript" charset="utf-8" src="<?php echo (TOOL_URL); ?>ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo (TOOL_URL); ?>ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo (TOOL_URL); ?>ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<h1>
    <span class="action-span"><a href="<?php echo ($_page_btn_link); ?>"><?php echo ($_page_btn_name); ?></a></span>
    <span class="action-span1"><a href="/shop/index.php/Admin/Index/index">管理中心</a> </span>
    <span id="search_id" class="action-span1">-<?php echo ($_page_title); ?></span>
    <div style="clear:both"></div>
</h1>
    

<!-- 搜索 -->
<div class="form-div search_form_div">
    <form method="GET" name="search_form">
		<p>
			品牌名称：
	   		<input type="text" name="brand_name" size="30" value="<?php echo I('get.brand_name'); ?>" />
		</p>
		<p><input type="submit" value=" 搜索 " class="button" /></p>
    </form>
</div>
<!-- 列表 -->
<div class="list-div" id="listDiv">
	<table cellpadding="3" cellspacing="1">
    	<tr>
            <th >品牌名称</th>
            <th >品牌网站地址</th>
            <th >品牌logo</th>
			<th width="60">操作</th>
        </tr>
		<?php foreach ($data as $k => $v): ?>            
			<tr class="tron">
				<td><?php echo $v['brand_name']; ?></td>
				<td><?php echo $v['site_url']; ?></td>
				<td><?php echo $v['logo']; ?></td>
		        <td align="center">
		        	<a href="<?php echo U('edit?id='.$v['id'].'&p='.I('get.p')); ?>" title="编辑">编辑</a> |
	                <a href="<?php echo U('delete?id='.$v['id'].'&p='.I('get.p')); ?>" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
        <?php endforeach; ?> 
		<?php if(preg_match('/\d/', $page)): ?>  
        <tr><td align="right" nowrap="true" colspan="99" height="30"><?php echo $page; ?></td></tr> 
        <?php endif; ?> 
	</table>
</div>
<script>
</script>

<div id="footer">
测试商城项目<br />
</div>
</body>
</html>
<script type="text/javascript" charset="utf-8" src="<?php echo (ADMIN_JS_URL); ?>trr.js"></script>